local garagepoint = nil

function GM:InitPostEntity()
	garagepoint = ents.FindByClass("vehicle_creation_look")[1]
end

function GM:PutPlayerInGarage(ply)
	if ply.InGarageMenu then
		ply:UnLock()
		ply:SetViewEntity(NULL)
		ply.InGarageMenu = false
		return
	end

	ply:Lock()
	ply:SetViewEntity(garagepoint)
	ply.InGarageMenu = true
end

function GM:PlayerEnterSpawnGarage(ply, garage)
	ply.InGarage = true
	ply.Garage = garage
end

function GM:PlayerExitSpawnGarage(ply)
	ply.InGarage = false
	ply.Garage = nil
end